<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        body {
            background-color: black;
        }
        image {
            outline: none;
            border: none;
        }
        body {
            background-color: black;
            perspective: 1000px;
        }
        li {
            list-style: none;
            float: left;
        }
        .box {
            height: 380px;
            width: 900px;
            margin: 150px auto;
        }
        .pic {
            position: relative;
            width: 198px;
            height: 378px;
            margin-right: 10px;
            transform-style: preserve-3d;
            transition: all 1s;
        }
        .front,
        .bottom {
            position: absolute;
            overflow: hidden;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
        }
         .front {
            z-index: 1;
        
        }
        .bottom {
            transform: rotateY(180deg);
        }
        .pic:hover {
            transform: rotateY(180deg);
        }
    </style>
</head>
<body>
    <div class="box">
        <ul>
            <li>
                <div class="pic">
                    <div class="front">
                        <img src="1.jpg" alt="">
                    </div>
                    <div class="bottom">
                        <img src="6.jpg" alt="">
                    </div>    
                </div>
            </li>
            <li>
                <div class="pic">
                    <div class="front">
                        <img src="2.jpg" alt="">
                    </div>
                    <div class="bottom">
                        <img src="7.jpg" alt="">
                    </div>    
                </div>
            </li>
            <li>
                <div class="pic">
                    <div class="front">
                        <img src="3.jpg" alt="">
                    </div>
                    <div class="bottom">
                        <img src="8.jpg" alt="">
                    </div>    
                </div>
            </li>
            <li>
                <div class="pic">
                    <div class="front">
                        <img src="4.jpg" alt="">
                    </div>
                    <div class="bottom">
                        <img src="9.jpg" alt="">
                    </div>    
                </div>
            </li>

        </ul>
    </div>
    
</body>
</html>